<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="bean.Photo_news"%>
<%@page import="bean.Donate"%>
<%@page import="bean.Funding_information"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
	<head>
		<title>图片新闻</title>
		<link rel="shortcut icon" href="images/titleico.ico" />
		<link href="css/myA.css" type="text/css" rel="stylesheet">
		<link href="css/myCss.css" type="text/css" rel="stylesheet">
	</head>
	<body>

		<%
			ArrayList<Donate> donate_list = (ArrayList<Donate>) session
					.getAttribute("donate_list");
			ArrayList<Funding_information> funding_information_list = (ArrayList<Funding_information>) session
					.getAttribute("funding_information_list");
			ArrayList<Photo_news> photo_news_list = (ArrayList<Photo_news>) session
					.getAttribute("photo_news_list");
			if (photo_news_list == null) {
				response.sendRedirect("photo_news?page=photo_news.jsp");
			} else if (donate_list == null) {
				response.sendRedirect("donate?page=photo_news.jsp");
			} else if (funding_information_list == null) {
				response.sendRedirect("funding_information?page=photo_news.jsp");
			}
		%>
		<jsp:include page="top.jsp"></jsp:include>
		<table cellpadding="0" cellspacing="0" width="960" align="center">
			<tr>
				<td valign="top">
					<jsp:include page="leftshow.jsp"></jsp:include>
				</td>
				<td valign="top">
					<table cellpadding="0" cellspacing="0" width="630" align="right">
						<tr>
							<td style="padding-top: 0">
								<hr color="#CC9966" />
							</td>
						</tr>
						<tr>
							<td style="padding-left: 20">
								<img src="images/n_tpxw.jpg" />
							</td>
						</tr>
						<tr>
							<td style="padding-top: 0">
								<hr color="#CC9966" />
							</td>
						</tr>
						<tr>
							<td>
								<table cellpadding="3" cellspacing="0" width="620"
									align="center">
									<c:forEach items="${photo_news_list}" var="photo_news">
										<tr>
											<td>
												<a href="photo_newsshow.jsp?id=${photo_news.id }" class="style1"
													title="${photo_news.photo_news_title}">·${photo_news.photo_news_title
													}</a>
											</td>
											<td align="center">
												[${photo_news.photo_news_date }]
											</td>
										</tr>
									</c:forEach>
								</table>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
		<jsp:include page="bottom.jsp"></jsp:include>
		
		<%
			if(donate_list != null && photo_news_list != null && funding_information_list != null) {
				session.removeAttribute("donate_list");
				session.removeAttribute("photo_news_list");
				session.removeAttribute("funding_information_list");
			}
		%>
	</body>
</html>